<script setup>
  import { reactive } from 'vue'
  const state = reactive({
    count: 0
  })
  const setCount = ()=>{
    state.count++
  }

  // import { ref } from 'vue'
  // const count = ref(1)
  // const setCount = ()=>{
  //   count.value++
  // }

</script>

<template>
<div>{{state.count}}</div>
<button @click="setCount">点击</button>
</template>

<style scoped>

</style>
